package com.example.studentmanager.model;


import org.springframework.stereotype.Component;

@Component
public class Grade {


    private double score;
    private Integer courseid;
    private Integer studentid;
    private Integer coursecredit;
    private Integer gradeid;
    private Integer usualperformance;
    private Integer middleexam;
    private Integer finalexam;

    public Integer getUsualperformance() {
        return usualperformance;
    }

    public void setUsualperformance(Integer usualperformance) {
        this.usualperformance = usualperformance;
    }

    public Integer getMiddleexam() {
        return middleexam;
    }

    public void setMiddleexam(Integer middleexam) {
        this.middleexam = middleexam;
    }

    public Integer getFinalexam() {
        return finalexam;
    }

    public void setFinalexam(Integer finalexam) {
        this.finalexam = finalexam;
    }

    public Grade(double score, Integer courseid, Integer studentid, Integer coursecredit, Integer gradeid, Integer usualperformance, Integer middleexam, Integer finalexam) {

        this.score = score;
        this.courseid = courseid;
        this.studentid = studentid;
        this.coursecredit = coursecredit;
        this.gradeid = gradeid;
        this.usualperformance = usualperformance;
        this.middleexam = middleexam;
        this.finalexam = finalexam;
    }

    public Grade() {

    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Integer getCourseid() {
        return courseid;
    }

    public void setCourseid(Integer courseid) {
        this.courseid = courseid;
    }

    public Integer getStudentid() {
        return studentid;
    }

    public void setStudentid(Integer studentid) {
        this.studentid = studentid;
    }

    public Integer getCoursecredit() {
        return coursecredit;
    }

    public void setCoursecredit(Integer coursecredit) {
        this.coursecredit = coursecredit;
    }


    public Integer getGradeid() {
        return gradeid;
    }

    public void setGradeid(Integer gradeid) {
        this.gradeid = gradeid;
    }
}
